<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<% boolean deleteIsOk = false; %>
	<form action = "admin_info.jsp" method = "post"> 
			<input type = "submit" value = "返回" />
	</form>
	<form action="http://localhost:8083/Car_Pass_Count_System/SelectUserServlet" method = "post"">
		username<input type="text" name="username"/>
		<input type="submit"/>
	</form>
	<table>
		<tr>
			<th> 车主用户名 </th>
			<th> 创建日期 </th>
			<th> 操作1 </th>
			<th> 操作2 </th>
		</tr> 
		<tr>
			<td>${ user.username }</td>
			<td>${ user.createTime }</td>
			<td><c:if test="${not empty user.username}"><a href = "http://localhost:8083/Car_Pass_Count_System/DeleteUserServlet?username=${ user.username }"> 删除 </a> </c:if></td>
			<td><c:if test="${not empty user.username}"><a href = "http://localhost:8083/Car_Pass_Count_System/update_user.jsp?username=${ user.username }"> 修改 </a> </c:if></td>
		</tr>
	</table>
	<c:if test = "${ deleteIsOk }"> 删除完成 </c:if>
</body>
</html>